package com.gupaoedu.xin.vip.pattern.factory.abstractfactory;

import com.gupaoedu.xin.vip.pattern.factory.ICourse;

public class AbstractFactoryTest {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaCourseFactory();
        INote javaNote= factory.createNote();
        javaNote.edit();
        IVideo javavideo= factory.createVideo();
        javavideo.record();

        System.out.println(" ------------------ ");

        ICourseFactory factory1 = new PythonCourseFactory();
        factory1.createVideo().record();
        factory1.createNote().edit();
    }
}
